﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using SmartMap.Domain.Controllers;

namespace SmartMap.Domain
{
	public class Admin
	{
        public static Admin Current
        {
            get
            {
                return AdminController.Current;
            }
        }
		public int AdminID { get; set; }

		public int? AdminTypeID { get; set; }

		public string AdminUserName { get; set; }

		public bool Authenticated 
		{
			get
			{
                return AdminController.IsAuthenticated;
			}
		}

		public Admin(string username, string password)
		{
			AdminController.Login(username, password);
		}

		public Admin() { }
	}
}
